package com.robertbak.geolocation
{
	
	
	import com.robertbak.geolocation.interfaces.IAddress;
	
	public class GeoAddress implements IAddress
	{
		public function GeoAddress(O:Object)
		{
			if (O != null)
			{
				_streetNumber= O.streetNumber;
				_street=O.street;
				_premises=O.premises;
				_city=O.city;
				_county=O.county;
				_region=O.region;
				_country=O.country;
				_countryCode=O.countryCode;
				_postalCode=O.postalCode;
			
			}	
		}
		
		private var _streetNumber:String;
		
		public function get streetNumber():String
		{
			return _streetNumber;
		}
		
		private var _street:String;
		
		
		public function get street():String
		{
			return _street;
		}
		
		private var _premises:String;
		public function get premises():String
		{			
			return _premises;
		}
		
		private var _city:String;
		public function get city():String
		{			
			return _city;
		}
		
		private var _county:String;		
		public function get county():String
		{
			return _county;
		}
		
		private var _region:String;		
		public function get region():String
		{
			return _region;
		}
		
		private var _country:String;
		
		public function get country():String
		{
			return _country;
		}
		
		private var _countryCode:String;		
		public function get countryCode():String
		{
			return _countryCode;
		}
		
		private var _postalCode:String;		
		public function get postalCode():String
		{
			return _postalCode;
		}
		
	}
}